﻿<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<title>后台管理 - 易买网</title>
<link type="text/css" rel="stylesheet" href="../css/style.css" />
<script type="text/javascript" src="../scripts/function-manage.js"></script>
</head>
<body>
<%@include file="nav.jsp"%>
<div id="position" class="wrap">
	您现在的位置：<a href="index.jsp">易买网</a> &gt; 管理后台
</div>
<div id="main" class="wrap">
	<%@include file="left.jsp"%>
	<div class="main">
		<h2>分类管理</h2>
		<div class="manage">
			<table class="list">
				<tr>
					<th>ID</th>
					<th>分类名称</th>
					<th>操作</th>
				</tr>
				<c:forEach var="category" items="${list}">

					<c:if test="${category.epc_id==category.epc_parent_id}">
						<tr>
							<td class="first w4 c">${category.epc_id}</td>
							<td>${category.epc_name}</td>
							<td class="w1 c">
								<a href="categorySelectById?id=${category.epc_id}
								&parentId=${category.epc_parent_id}">修改</a>
							</td>
						</tr>
					</c:if>

					<c:if test="${category.epc_id!=category.epc_parent_id}">
						<tr>
							<td class="first w4 c">${category.epc_id}</td>
							<td class="childClass">${category.epc_name}</td>
							<td class="w1 c">
								<a href="categorySelectById?id=${category.epc_id}
								&parentId=${category.epc_parent_id}">修改</a>
							</td>
						</tr>
					</c:if>

				</c:forEach>
			</table>
		</div>
	</div>
	<div class="clear"></div>
</div>
<div id="footer">
	Copyright &copy; 2022 卓京教育 All Rights Reserved. 湘ICP证1001号
</div>
</body>
</html>
